package com.headwind.logistics.waybill.mapper;

import com.headwind.logistics.waybill.dto.ExpressGrantSiteEmpDTO;
import com.headwind.logistics.waybill.dto.ExpressRecordGrantDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 小恶魔
 * @Date 2020-07-24 10:09
 * @Version 1.0
 * @DESCRIPTION 面单发放记录数据访问层
 */
public interface ExpressGrantMapper {

    /**
     * 获取面单发放记录
     * @param page
     * @param rows
     * @return
     */
    List<ExpressGrantSiteEmpDTO> queryAllExpressGrantOrPage(@Param("page")Integer page,@Param("rows")Integer rows);

    /**
     * 根据发放日期和网点名称查询面单发放记录
     * @param page
     * @param rows
     * @param startDate
     * @param endDate
     * @param siteName
     * @return
     */
    List<ExpressGrantSiteEmpDTO> queryExpressGrantByGrantDateOrSiteName(@Param("page")Integer page
            ,@Param("rows")Integer rows
            ,@Param("startDate")String startDate
            ,@Param("endDate")String endDate
            ,@Param("siteName")String siteName);
}
